export default {
  namespaced: true,
  state: {
    title: "cart",
  },
  getters: {
    g1: (state, getters, rootState) => "cart g1" + rootState.count,
  },
  mutations: {
    SET_TITLE: (state, value) => (state.title = value),
  },
  actions: {
    add(store, { x, y }) {
      console.log(store.state.title, store.rootState, x + y);
    },
  },
};
